package com.atguigu.yygh.common.result;


public enum REnum {
    //枚举项,枚举项
    SUCCESS(20000,"成功",true),
    ERROR(20001,"失败",false)
    ;
    private Integer code;
    private String message;
    private boolean success;

    REnum(Integer code,String message,boolean success){
        this.code=code;
        this.message=message;
        this.success=success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
